package com.wn.sk;

/**
 * 业务异常
 * 自定义的异常类:
 * 1、继承 exception、RuntimeException
 * 2、重写方法
 * 3、手动抛出异常
 * 4、 结合全局异常处理
 *
 */
public class BusinessException extends RuntimeException {
    public BusinessException() {
    }

    public BusinessException(String message) {
        super(message);
    }

    public BusinessException(String message, Throwable cause) {
        super(message, cause);
    }

    public BusinessException(Throwable cause) {
        super(cause);
    }

    public BusinessException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
